<?php
class RegistrationHistory_Model extends Entity_Model {
    
    public function __construct($valueMap) {
        parent::__construct(
                
                /* table */
                'registration_history',
                
                /* field names */
                array(
                		'registration_id',
                		'version',
						'batch_code',
						'category_code',
						'total_price',
                		'price_paid',
						'extra_discount',
						'extra_discount_reason',
						'payment_on_arrival_fee',
						'cancellation_fee',
						'social_discount_applied',
						'early_discount_applied',
						'late_charge_applied',
						'payment_organization_id',
						'payment_type'
                ),
                
                /* primary keys */
        		array('registration_id', 'version'),
                
                /* values */
                $valueMap
        );
        
        $this->hasCreationFields = false;
        $this->hasEntityVersion = false;
    }
}
